package com.wjj.orderservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjj
 * @since 2021-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PurchaseOrder extends Model<PurchaseOrder> {

    private static final long serialVersionUID=1L;

    /**
     * 采购订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 请购数
     */
    private Integer buySum;

    /**
     * 期望时间
     */
    private LocalDateTime expectTime;

    /**
     * 发货需求
     */
    private String deicerDemand;

    /**
     * 打包方式
     */
    private String packMode;

    /**
     * 质量要求
     */
    private String qualityRequirement;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 物料id
     */
    private Integer materialId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
